package aqv

class Project {
	
	String name
	String description
	Date begin
	Date end
	Integer budget
	byte[] projectPic
	Politician politician

    static constraints = {
		
		name blank : false
		description blank : false
		begin blank : false
		end blank : false
		budget blank : false
		
    }
	
	//static belongsTo = [Politician]
	
	static mapping = {
		tablePerHierarchy false
		projectPic column:"project_pic", sqlType: "blob"
	}
	
}
